//
//  ChildInfo.h
//  iBaby365v2
//
//  Created by Kirinrin on 14-7-15.
//  Copyright (c) 2014年 suplus. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef NS_ENUM(NSUInteger, GenderType)
{
    Female,
    Male,
};

@interface ChildInfo : NSObject
@property(strong, nonatomic)NSString *authenticationCode;
@property(strong, nonatomic)NSString *id;
@property(strong, nonatomic)NSString *cid;
@property(strong, nonatomic)NSString *birthday;
@property(strong, nonatomic)NSDate *dbDatetime;
@property(strong, nonatomic)NSString *deviceId;
@property(strong, nonatomic)NSString *deviceSafeId;
@property(strong, nonatomic)NSString *deviceSos;
@property(strong, nonatomic)NSString *deviceWhiteList;
@property(strong, nonatomic)NSString *kindergartenId;
@property(strong, nonatomic)NSString *name;
//0-女 1-男
@property(assign, nonatomic)GenderType sex;
@property(strong, nonatomic)NSString *status;
@property(strong, nonatomic)NSString *state;
@property(strong, nonatomic)NSString *uid;

@property(strong, nonatomic)NSURL *photoUrl;


//for score
@property(assign, nonatomic)NSUInteger option0;
@property(assign, nonatomic)NSUInteger option1;
@property(assign, nonatomic)NSUInteger option2;
@property(assign, nonatomic)NSUInteger option3;
@property(strong, nonatomic)NSString *memo;

-(instancetype)initWithDictionary:(NSDictionary *)data;

- (NSString *) getFirstName;

- (NSDictionary *)getScoreData;
- (void)setScoreOption:(NSUInteger)option0 :(NSUInteger)option1 :(NSUInteger)option2 :(NSUInteger)option3;

+(NSArray *)sortByGenderAndNameFromChildListFromeRemoteData:(NSArray *)dataList;
+(NSArray *)getScoreDataFromChildArray:(NSArray *)childArray;
@end
